package com.zxy.ziems.server.convert;

import com.zxy.ziems.server.domain.User;
import com.zxy.ziems.server.dto.UserDto;
import com.zxy.ziems.server.vo.UserVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @description:
 * @auther: windrunner
 * @date 2022/9/1 18:45
 */
@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    User userDtoToUser(UserDto userDto);

    UserVo userToUserVo(User user);

}
